#ifndef _COMMON_H_
#define _COMMON_H_

/*
 * include header
 */
// standard library
#include <stdlib.h>
#include <math.h>
#include <pthread.h>

// open cv header
#include <opencv/cv.h>
#include <opencv/highgui.h>

#include "type.h"
#include "linkedList.h"
//#include "histogram.h"
#include "hsi_lookup.h"
#include "imgProc.h"
#include "detectFinger.h"

// Define constants
#define PI 3.1415
#define BLACK   0
#define WHITE   255

#define RED			2
#define GREEN		1
#define BLUE		0

#define WIDTH   	320
#define HEIGHT  	240
#define IMG_SIZE	WIDTH * HEIGHT

// Define macro functions
#define MAX_(a,b) ((a) > (b) ? (a):(b))
#define MIN_(a,b) ((a) < (b) ? (a):(b))
#define ABS(a,b)	(((a)>(b)) ? ((a)-(b)) : ((b)-(a)))

#endif // _COMMON_H_

